/*
 * @Description: Description
 * @Author: wning
 * @Date: 2022-12-01 16:22:31
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-15 10:18:42
 */
import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('resourceAdmin.template.templateCode'),
    minWidth: 180,
    width: 'auto',
    prop: 'templateCode',
    fixed: true
  },
  {
    label: i18n.t('resourceAdmin.template.templateName'),
    minWidth: 200,
    width: 'auto',
    prop: 'templateName',
    fixed: true
  },
  {
    label: i18n.t('resourceAdmin.template.filePath'),
    minWidth: 240,
    width: 'auto',
    prop: 'filePath'
  },
  {
    label: i18n.t('resourceAdmin.template.state'),
    minWidth: 120,
    width: 'auto',
    prop: 'state'
  },
  {
    label: i18n.t('resourceAdmin.template.remark'),
    prop: 'remark',
    width: 'auto'
  },
  {
    label: i18n.t('resourceAdmin.template.createTime'),
    width: 'auto',
    minWidth: 160,
    prop: 'createTime'
  }
]
export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'upms:template:edit'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'upms:template:delete'
  }
]
